<?php

    class Attributes_model extends MY_Model
    {
        function __construct()
        {
            parent::__construct();
            $this->table = 'attributes';
        }
        
        function list_all()
        {
            $this->db->where('custom',1);
            $this->db->order_by('ID',"DESC");
            $res = $this->db->get('attributes')->result_array();
            return $res;
        }
    }

?>
